package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.LoginDto;
import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import com.atguigu.spzx.model.vo.system.LoginVo;
import com.atguigu.spzx.model.vo.system.ValidateCodeVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SysUserService {
    LoginVo login(LoginDto loginDto);

    ValidateCodeVo generateValidateCode();

    SysUser getUserinfo();

    void logout(String token);

    PageInfo<SysUser> findPage(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    void deleteById(Long id);

    void save(SysUser sysUser);

    SysUser getById(Long id);

    void update(SysUser sysUser);

    void batchDel(List<Long> ids);
}
